package com.econ.powercloud.ems.dal.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 储能站并离网步骤记录表
 * @author jwc
 * @since 2022/08/26
 */
@Data
@Accessors(chain = true)
@TableName(value = "ems_grid_record_step")
public class EmsGridRecordStep {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 储能站id
     */
    @TableField(value = "energy_station_id")
    private String energyStationId;

    /**
     * 所属步骤id
     */
    @TableField(value = "process_step_id")
    private Long processStepId;

    /**
     * 所属节点记录id
     */
    @TableField(value = "record_node_id")
    private Long recordNodeId;

    /**
     * 步骤序号
     */
    @TableField(value = "order_num")
    private Integer orderNum;

    /**
     * 状态，1：未开始，2：进行中，3：成功，4：失败，5：已终止，6：待确认成功
     */
    @TableField(value = "`status`")
    private Integer status;

    /**
     * 下发/查询的点号，（移峰填谷存的是装置id）
     */
    @TableField(value = "dit")
    private String dit;

    /**
     * 查询点号的值
     */
    @TableField(value = "check_dit_val")
    private String checkDitVal;

    /**
     * iot_mqtt_sync_msg表msg_id
     */
    @TableField(value = "sync_msg_id")
    private Integer syncMsgId;

    /**
     * 停止的移峰填谷的id
     */
    @TableField(value = "stop_peak_shift_id")
    private String stopPeakShiftId;

    /**
     * 记录日志
     */
    @TableField(value = "`logs`")
    private String logs;

    /**
     * 开始时间
     */
    @TableField(value = "begin_time")
    private Date beginTime;

    /**
     * 结束时间
     */
    @TableField(value = "end_time")
    private Date endTime;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}